/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.question4.Shop.Impl;

/**
 *
 * @author Ziyaad
 */
public class Tax {
    
    private long taxNumber;

    /**
     * @return the taxNumber
     */
    public long getTaxNumber() {
        return taxNumber;
    }

    /**
     * @param taxNumber the taxNumber to set
     */
    public void setTaxNumber(long taxNumber) {
        this.taxNumber = taxNumber;
    }
    
    public double calTax(Invoice invoice)
    {
        
        return (invoice.calcTotal(new Item())) * 0.14;
    }
    
}

